#include <iostream>
#include <ostream>
#include <eigen3/Eigen/Dense>
#include <eigen3/Eigen/Core>
using namespace std;
using namespace Eigen;

int main(int argc, char const *argv[]
{
    MatrixXd A;
    MatrixXd b;
    MatrixXd x;
    x = A.colPivHouseholderQr().solve(b)
    ofstream outfile("data0.csv");
    if(!outfile)
    {
        cout << "打开文件夹失败！" << endl;
        exit(1);
    }
    for(int q = 0;q<n;q++)
    {
        outfile << x[q] << endl;
    }
    outfile.close();
}